package chapter3.No3_1_等待和通知机制.c等待通知机制的实现.demo4;

/**
 * 等待/通知机制实战
 * Created by Administrator on 2016/11/16.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        MyList list = new MyList();
        ThreadA a = new ThreadA(list);
        ThreadB b = new ThreadB(list);

        b.start();

        Thread.sleep(500);

        a.start();

    }
}
